import request from '@/utils/request.js';

/**
 * 登录
 * @param {Object} data 登录参数
 */
export const login = (data) => {
	return request.post('Mini/ApiConnect/login', data)
}

/**
 * 获取登录信息
 * @param {Object} data 登录参数
 */
export const MiniCodeLogin = (data) => {
	return request.post('Mini/ApiConnect/MiniCodeLogin', data)
}

/**
 * 个人中心
 */
export const userCenter = (data) => {
	return request.post('Mini/ApiConnect/userCenter', data)
}

/**
 * 修改个人资料
 */
export const saveUserData = (data) => {
	return request.post('Mini/ApiConnect/saveUserData', data)
}

/**
 * 我的收藏列表
 */
export const getCollect = (data) => {
	return request.post('Mini/ApiConnect/getCollect', data)
}

/**
 * 小程序授权获取手机号码
 */
export const getUserMobile = (data) => {
	return request.post('Mini/ApiConnect/getUserMobile', data)
}

/**
 * 物流查询
 */
export const getShippingData = (data) => {
	return request.post('Mini/ApiConnect/getShippingData', data)
}

/**
 * 留言反馈列表
 */
export const FeedbacksList = (data) => {
	return request.post('Mini/ApiConnect/FeedbacksList', data)
}
/**
 * 留言反馈列表
 */
export const FeedbacksSubmit = (data) => {
	return request.post('Mini/ApiConnect/FeedbacksSubmit', data)
}
/**
 * 留言反馈详细
 */
export const FeedbacksInfo = (data) => {
	return request.post('Mini/ApiConnect/FeedbacksInfo', data)
}

/**
 * 获取个人资料
 */
export const getUserData = (data) => {
	return request.post('Mini/ApiConnect/getUserData', data)
}



/**
 * 我的订单
 */
export const UserOrderList = (data) => {
	return request.post('Mini/ApiConnect/UserOrderList', data)
}




/**
 * 获取优惠劵列表
 */
export const voucherList = (data) => {
	return request.post('Mini/ApiConnect/voucherList', data)
}
/**
 * 我的优惠劵
 */
export const userVoucher = (data) => {
	return request.post('Mini/ApiConnect/userVoucher', data)
}

/**
 * 领取优惠劵
 */
export const purchaseVoucher = (data) => {
	return request.post('Mini/ApiConnect/purchaseVoucher', data)
}

/**
 * 支付优惠劵
 */
export const VoucherPay = (data) => {
	return request.post('mini/ApiConnect/VoucherPay', data)
}
/**
 * 价格列表
 */
export const getPriceList = (data) => {
	return request.post('Mini/ApiConnect/getPriceList', data)
}

/**
 * 福利光
 */
export const getWelfare = (data) => {
	return request.post('Mini/ApiConnect/getWelfare', data)
}

/**
 * 常见问题
 */
export const getProblem = (data) => {
	return request.post('mini/ApiConnect/getProblem', data)
}


/**
 * 隐私条款列表
 */
export const getPrivate = (data) => {
	return request.post('mini/ApiConnect/getPrivate', data)
}
/**
 * 合作方式
 */
export const getCooperateMethods = (data) => {
	return request.post('mini/ApiConnect/getCooperateMethods', data)
}

/**
 * 合作申请
 */
export const cooperation = (data) => {
	return request.post('mini/ApiConnect/cooperation', data)
}

/**
 * 通知列表
 */
export const messageList = (data) => {
	return request.post('Mini/ApiConnect/messageList', data)
}

/**
 * 轮播图列表
 */
export const GetAdList = (data) => {
	return request.post('Mini/ApiConnect/GetAdList', data)
}